package com.yaodian100.ec.giftcard.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yaodian100.core.common.entity.BaseEntity;

@Entity
@Table(name = "EC_GIFTCARD_RECEIVE_ITEM")
public class GiftcardReceiveItem extends BaseEntity {

	/** serial version */
	private static final long serialVersionUID = -3230620271711662998L;

	/** 禮品卡領用單明細編號 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_giftcard_receive_item")
	@SequenceGenerator(name = "seq_ec_giftcard_receive_item", sequenceName = "SEQ_EC_GIFTCARD_RECEIVE_ITEM")
	@Column(name = "RECEIVE_ITEM_ID")
	private Long receiveItemId;
	
	/** 禮品卡領用單主檔編號 */
	@Column(name = "RECEIVE_ID")
	private Long receiveId;
	
	/** 面額 */
	@Column(name = "AMOUNT", nullable = false, columnDefinition = "numeric(10,2)")
	private BigDecimal amount;
	
	/** 數量 */
	@Column(name = "COUNT")
	private int count;
	
	//getter & setter
	public Long getReceiveItemId() {
		return receiveItemId;
	}

	public void setReceiveItemId(Long receiveItemId) {
		this.receiveItemId = receiveItemId;
	}

	public Long getReceiveId() {
		return receiveId;
	}

	public void setReceiveId(Long receiveId) {
		this.receiveId = receiveId;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}
}